package cn.tedu.bonfire.admin.account.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("content_article")
public class Note implements Serializable {

    /*数据ID*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*文章标题*/
    private String title;

    /*文章封面*/
    private String picture;

    /*文章内容*/
    private String content;

    /*文章状态，是否显示在导航栏中，1=私用，0=公开*/
    private Integer status;

    /*创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /*修改时间*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /*用户ID*/
    private Long userId;

    /*类型ID*/
    private Integer typeId;

    /*点赞量*/
    private Integer likeTimes;

    /*收藏量*/
    private Integer collectTimes;

    /*审核状态，0=审核中，1=审核通过，2=审核失败*/
    private Integer auditStatus;

    /*浏览量*/
    private Integer clickTimes;

    /*ip地址*/
    private String ip;

    /*评论量*/
    private Integer commentCount;
}
